package com.opal.modules.costReportForm.entity;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Configuration()
@PropertySource("classpath:config/settingsfile.properties")
public class AcMail implements Serializable{
	private static final long serialVersionUID = 1L;
	private String fromMail;					//发送邮箱
	private String toMail;  					//申请人邮箱
	private String toMail1;						//项目经理邮箱
	private String toMail2;						//部门经理邮箱
	private String toMail3;						//总经理邮箱
	private String toMail4;						//总裁邮箱
	private String toMail5;						//副总经理邮箱
	private String waiXiaoCaiWuMail;			//外销-财务会计邮箱
	private String waiXiaoCaiWuMail2;			//外销-财务会计邮箱2
	private String waiXiaoCaiWuMail3;			//外销-财务会计邮箱3
	private String neiXiaoCaiWuMail;			//内销-财务会计邮箱1
	private String neiXiaoCaiWuMail2;			//内销-财务会计邮箱2
	private String neiXiaoCaiWuMail3;			//内销-财务会计邮箱3
	private String subject;						//主题
	private String rSubject;					//审批结果主题
	private String cc;
	private String bcc;
	private String charset;  					// 编码   utf-8
	private String html;						//html内容
	private String html2;						//申请人同意后的邮箱内容
	private String noHtml;
	private String caiWuSubject;  				// 财务接收主题
	private String juJueHtml;  					//申请人被拒绝后的邮箱内容
	private String caiWuHtml;  					// 财务接收内容
	
	
	@Bean(name="mail")
	@ConfigurationProperties(prefix = "ac.mail")
	@JsonIgnore   //jackon转换序列化需要忽略的属性，这里设置就是转换会造成无限递归造成堆栈溢出问题
	public AcMail getStartAcMail() {
		AcMail acMail= new AcMail();
		return acMail;
	}
	
	public String getToMail() {
		return toMail;
	}
	public void setToMail(String toMail) {
		this.toMail = toMail;
	}
	public String getrSubject() {
		return rSubject;
	}
	public void setrSubject(String rSubject) {
		this.rSubject = rSubject;
	}
	public String getFromMail() {
		return fromMail;
	}
	public void setFromMail(String fromMail) {
		this.fromMail = fromMail;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getCc() {
		return cc;
	}
	public void setCc(String cc) {
		this.cc = cc;
	}
	public String getBcc() {
		return bcc;
	}
	public void setBcc(String bcc) {
		this.bcc = bcc;
	}
	public String getCharset() {
		return charset;
	}
	public void setCharset(String charset) {
		this.charset = charset;
	}
	public String getHtml() {
		return html;
	}
	public void setHtml(String html) {
		this.html = html;
	}
	public String getNoHtml() {
		return noHtml;
	}
	public void setNoHtml(String noHtml) {
		this.noHtml = noHtml;
	}

	public String getToMail1() {
		return toMail1;
	}

	public void setToMail1(String toMail1) {
		this.toMail1 = toMail1;
	}

	public String getToMail2() {
		return toMail2;
	}

	public void setToMail2(String toMail2) {
		this.toMail2 = toMail2;
	}

	public String getToMail3() {
		return toMail3;
	}

	public void setToMail3(String toMail3) {
		this.toMail3 = toMail3;
	}

	public String getToMail4() {
		return toMail4;
	}

	public void setToMail4(String toMail4) {
		this.toMail4 = toMail4;
	}

	public String getHtml2() {
		return html2;
	}

	public void setHtml2(String html2) {
		this.html2 = html2;
	}

	public String getWaiXiaoCaiWuMail() {
		return waiXiaoCaiWuMail;
	}

	public void setWaiXiaoCaiWuMail(String waiXiaoCaiWuMail) {
		this.waiXiaoCaiWuMail = waiXiaoCaiWuMail;
	}

	public String getNeiXiaoCaiWuMail() {
		return neiXiaoCaiWuMail;
	}

	public void setNeiXiaoCaiWuMail(String neiXiaoCaiWuMail) {
		this.neiXiaoCaiWuMail = neiXiaoCaiWuMail;
	}

	public String getNeiXiaoCaiWuMail2() {
		return neiXiaoCaiWuMail2;
	}

	public void setNeiXiaoCaiWuMail2(String neiXiaoCaiWuMail2) {
		this.neiXiaoCaiWuMail2 = neiXiaoCaiWuMail2;
	}

	public String getCaiWuSubject() {
		return caiWuSubject;
	}

	public void setCaiWuSubject(String caiWuSubject) {
		this.caiWuSubject = caiWuSubject;
	}

	public String getCaiWuHtml() {
		return caiWuHtml;
	}

	public void setCaiWuHtml(String caiWuHtml) {
		this.caiWuHtml = caiWuHtml;
	}

	public String getJuJueHtml() {
		return juJueHtml;
	}

	public void setJuJueHtml(String juJueHtml) {
		this.juJueHtml = juJueHtml;
	}

	public String getToMail5() {
		return toMail5;
	}

	public void setToMail5(String toMail5) {
		this.toMail5 = toMail5;
	}

	public String getWaiXiaoCaiWuMail2() {
		return waiXiaoCaiWuMail2;
	}

	public void setWaiXiaoCaiWuMail2(String waiXiaoCaiWuMail2) {
		this.waiXiaoCaiWuMail2 = waiXiaoCaiWuMail2;
	}

	public String getWaiXiaoCaiWuMail3() {
		return waiXiaoCaiWuMail3;
	}

	public void setWaiXiaoCaiWuMail3(String waiXiaoCaiWuMail3) {
		this.waiXiaoCaiWuMail3 = waiXiaoCaiWuMail3;
	}

	public String getNeiXiaoCaiWuMail3() {
		return neiXiaoCaiWuMail3;
	}

	public void setNeiXiaoCaiWuMail3(String neiXiaoCaiWuMail3) {
		this.neiXiaoCaiWuMail3 = neiXiaoCaiWuMail3;
	}
}
